package com.atgm.mall.gmmailorder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 订单项信息
 * 
 * @author pdx
 * @email 945097967@qq.com
 * @date 2021-08-20 10:06:51
 */
@Data
@TableName("oms_order_item")
public class OrderItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * order_sn
	 */
	private String orderSn;

	/**
	 * 商品id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long gameId;
	/**
	 * 商品名称
	 */
	private String gameName;
	/**
	 * 商品默认图片
	 */
	private String gameDefImg;
	/**
	 * 商品数量
	 */
	private Integer gameQuantity;
	/**
	 * 商品价格
	 */
	private BigDecimal gamePrice;
	/**
	 * 优惠金额
	 */
	private BigDecimal couponAmount;
	/**
	 * 该商品经过优惠后的分解金额
	 */
	private BigDecimal realAmount;
	/**
	 * 赠送积分
	 */
	private Integer giftIntegration;
	/**
	 * 赠送成长值
	 */
	private Integer giftGrowth;

}
